package GUI;

import java.awt.Color;

import handlers.ColourSchema;

public class AbrirCerrarCaja extends javax.swing.JFrame {
	
	ColourSchema colours;
	Color primary;
	Color secondary;

    public AbrirCerrarCaja() {
    	colours = new ColourSchema();
    	primary = colours.getPrimary();
    	secondary = colours.getSecondary();
    	
        initComponents();
    }

    private void initComponents() {

        container = new javax.swing.JPanel();
        cantMil = new javax.swing.JTextField();
        cantDosMil = new javax.swing.JTextField();
        cantCincoMil = new javax.swing.JTextField();
        cantDiezMil = new javax.swing.JTextField();
        cantVeiteMil = new javax.swing.JTextField();
        cantCincuentaMil = new javax.swing.JTextField();
        billemil4 = new javax.swing.JLabel();
        billemil5 = new javax.swing.JLabel();
        abrirCajaBtn = new javax.swing.JButton();
        billemil3 = new javax.swing.JLabel();
        billemil2 = new javax.swing.JLabel();
        billemil1 = new javax.swing.JLabel();
        moneQuinientos = new javax.swing.JLabel();
        cantMonedaQuinientos = new javax.swing.JTextField();
        cantmonedacien = new javax.swing.JTextField();
        moneCien = new javax.swing.JLabel();
        moneCincuenta = new javax.swing.JLabel();
        cantmonedacincuenta = new javax.swing.JTextField();
        cantmonedaveinticinco = new javax.swing.JTextField();
        Moneveinticinco = new javax.swing.JLabel();
        moneDiez = new javax.swing.JLabel();
        cantmonedasdiez = new javax.swing.JTextField();
        cantmonedascinco = new javax.swing.JTextField();
        moneCinco = new javax.swing.JLabel();
        billemil = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        getContentPane().setBackground(primary);
        
        cantMil.setText("10 ");
        cantMil.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cantMilActionPerformed(evt);
            }
        });

        cantDosMil.setText("10");

        cantCincoMil.setText("10");

        cantDiezMil.setText("10 ");

        cantVeiteMil.setText("10");

        cantCincuentaMil.setText("10");

        billemil4.setText("Billetes de cincuenta mil colones");

        billemil5.setText("Billetes de dos mil colones");

        abrirCajaBtn.setText("Abrir caja");

        billemil3.setText("Billetes de veinte mil colones");

        billemil2.setText("Billetes de diez mil colones");

        billemil1.setText("Billetes de cinco mil colones");

        moneQuinientos.setText("Monedas de quinientos");

        cantMonedaQuinientos.setText("10");

        cantmonedacien.setText("10");

        moneCien.setText("Monedas de cien");

        moneCincuenta.setText("Monedas de cincuenta");

        cantmonedacincuenta.setText("10 ");

        cantmonedaveinticinco.setText("10");

        Moneveinticinco.setText("Monedas de veinticinco");

        moneDiez.setText("Monedas de diez");

        cantmonedasdiez.setText("10");

        cantmonedascinco.setText("10 ");

        moneCinco.setText("Monedas de cinco");

        billemil.setText("Billetes de mil colones");

        container.setBackground(secondary);
        javax.swing.GroupLayout containerLayout = new javax.swing.GroupLayout(container);
        container.setLayout(containerLayout);
        containerLayout.setHorizontalGroup(
            containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(containerLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(cantMonedaQuinientos)
                    .addComponent(cantmonedacien, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cantmonedasdiez)
                    .addComponent(cantmonedascinco, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)
                    .addComponent(cantmonedaveinticinco)
                    .addComponent(cantmonedacincuenta))
                .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(containerLayout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(moneCien)
                            .addComponent(moneQuinientos))
                        .addGap(18, 18, 18)
                        .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(containerLayout.createSequentialGroup()
                                .addComponent(cantCincuentaMil, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(billemil4))
                            .addGroup(containerLayout.createSequentialGroup()
                                .addComponent(cantVeiteMil, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(billemil3))))
                    .addGroup(containerLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(moneDiez)
                            .addComponent(Moneveinticinco)
                            .addComponent(moneCinco)
                            .addComponent(moneCincuenta))
                        .addGap(18, 18, 18)
                        .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(containerLayout.createSequentialGroup()
                                .addComponent(cantMil, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(billemil))
                            .addGroup(containerLayout.createSequentialGroup()
                                .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(cantCincoMil, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(cantDiezMil, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(billemil2)
                                    .addComponent(billemil1)))
                            .addGroup(containerLayout.createSequentialGroup()
                                .addComponent(cantDosMil, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(billemil5, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, containerLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(abrirCajaBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(155, 155, 155))
        );
        containerLayout.setVerticalGroup(
            containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(containerLayout.createSequentialGroup()
                .addGap(9, 9, 9)
                .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cantMil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(moneCinco)
                    .addComponent(cantmonedascinco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(billemil))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(billemil5)
                    .addComponent(cantDosMil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cantmonedasdiez, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(moneDiez))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cantCincoMil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(billemil1)
                    .addComponent(Moneveinticinco)
                    .addComponent(cantmonedaveinticinco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cantDiezMil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(billemil2)
                    .addComponent(moneCincuenta)
                    .addComponent(cantmonedacincuenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cantmonedacien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(moneCien)
                        .addComponent(cantVeiteMil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(billemil3)))
                .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(containerLayout.createSequentialGroup()
                        .addGap(13, 13, 13)
                        .addComponent(cantMonedaQuinientos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(containerLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(moneQuinientos)
                            .addComponent(cantCincuentaMil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(billemil4))))
                .addGap(28, 28, 28)
                .addComponent(abrirCajaBtn)
                .addContainerGap(45, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(container, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(container, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }

    private void cantMilActionPerformed(java.awt.event.ActionEvent evt) {
    }

    //TODO Vars
    private javax.swing.JLabel Moneveinticinco;
    private javax.swing.JLabel billemil;
    private javax.swing.JLabel billemil1;
    private javax.swing.JLabel billemil2;
    private javax.swing.JLabel billemil3;
    private javax.swing.JLabel billemil4;
    private javax.swing.JLabel billemil5;
    private javax.swing.JTextField cantCincoMil;
    private javax.swing.JTextField cantCincuentaMil;
    private javax.swing.JTextField cantDiezMil;
    private javax.swing.JTextField cantDosMil;
    private javax.swing.JTextField cantMil;
    private javax.swing.JTextField cantMonedaQuinientos;
    private javax.swing.JTextField cantVeiteMil;
    private javax.swing.JTextField cantmonedacien;
    private javax.swing.JTextField cantmonedacincuenta;
    private javax.swing.JTextField cantmonedascinco;
    private javax.swing.JTextField cantmonedasdiez;
    private javax.swing.JTextField cantmonedaveinticinco;
    private javax.swing.JButton abrirCajaBtn;
    private javax.swing.JPanel container;
    private javax.swing.JLabel moneCien;
    private javax.swing.JLabel moneCinco;
    private javax.swing.JLabel moneCincuenta;
    private javax.swing.JLabel moneDiez;
    private javax.swing.JLabel moneQuinientos;
}